package com.yyp.car.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.car.Idao.INoticeDao;
import com.yyp.car.Iservice.INoticeService;
import com.yyp.car.model.Notice;
@Service("noticeService")
public class NoticeService implements INoticeService{
	@Resource(name="noticeDao")
	private INoticeDao nd;
	@Override
	public Notice add(Notice notice) {
		return nd.add(notice);
	}

	@Override
	public void update(Notice notice) {
		nd.update(notice);
	}

	@Override
	public void delete(int id) {
		nd.delete(id);
	}

	@Override
	public List<Notice> listNotice() {
		return nd.listNotice();
	}

	@Override
	public Notice findNotice(int id) {
		return nd.findNotice(id);
	}

}
